x86/altp2m: add control of suppress_ve
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Fri, 24 Jul 2015 11:30:44 +0000 (13:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Jul 2015 11:32:42 +0000 (13:32 +0200)
commit00e5fe6a83421766d5138c0cdf331e2e2b499da5
tree7b75f88d2123132b514178c0631cc7d6092c85da
parenta1b1572833f3d4a6d29bce750763fcf48c016a0a
x86/altp2m: add control of suppress_ve

The existing ept_set_entry() and ept_get_entry() routines are extended
to optionally set/get suppress_ve.  Passing -1 will set suppress_ve on
new p2m entries, or retain suppress_ve flag on existing entries.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Signed-off-by: Ravi Sahita <ravi.sahita@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@eu.citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
Also adjust the caller in set_identity_p2m_entry().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m-pod.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/p2m.h